All skills
freee avatar

/freee-api-skill

@f5d1212
by freeefreee/freee-mcp503 stars
58

freee-mcp / freee-sign-mcp と連携するスキル。会計・人事労務・請求書・工数管理・販売・IT管理・固定資産・業務委託管理・サーベイ・開業・人事評価・申告・サイン(電子契約)の詳細APIリファレンスと使い方ガイドを提供。freee の経費申請・取引登録・勤怠打刻・給与明細・見積書・試算表・仕訳・従業員管理・工数登録・売上管理・SaaSアカウント管理・備品管理・固定資産管理・業務委託先の企業ユーザー/部門管理・サーベイ企画/実施回の取得・開業申請用データの参照/更新・人事評価結果の取得・法人税申告データや帳票の参照・電子契約の文書管理などの操作やAPI仕様を調べたいときに使う。ユーザーが freee のデータ操作、会計処理、人事労務管理、請求・見積、プロジェクト工数管理、販売管理、IT管理、固定資産管理、業務委託管理、サーベイ、開業、人事評価、申告、電子契約について質問や操作を依頼してきた場合は、明示的に freee と言及していなくても、このスキルの利用を検討すること。サインは別途 freee-sign-mcp の設定が必要。

Use this Skill: https://skilld.dev/gh/freee/freee-mcp/freee-api-skill

This session only. Nothing lands on disk.

referenceshr-work-time-correction-requests.md

≈3.2k tokens on demand. Your agent reads this file only when SKILL.md points to it.

勤務時間修正申請

勤務時間修正申請の操作

GET /api/v1/approval_requests/work_times — 勤務時間修正申請一覧の取得

概要 指定した事業所の指定日付時点における勤務時間修正申請情報をリストで返します。

注意点 申請経路、承認者の指定として部門役職データ連携を活用し、以下のいずれかを利用している申請と申請経路はAPI経由で参照は可能ですが、作成と更新、承認ステータスの変更ができません。 役職指定(申請者の所属部門) 役職指定(申請時に部門指定) 部門および役職指定

パラメータ

  • company_id*: integer - 事業所ID
  • status: string - 申請ステータス
    • draft - 下書き
    • in_progress - 申請中
    • approved - 承認済
    • feedback - 差戻し (選択肢: draft, in_progress, approved, feedback)
  • application_number: integer - 申請No
  • start_issue_date: string(date) - 申請開始日
  • end_issue_date: string(date) - 申請終了日
  • approver_id: integer - 現在承認ステップの承認者のユーザーID approver_idに値を指定する場合、指定なしの申請経路を利用した申請は返却されません
  • applicant_id: integer - 申請者のユーザーID
  • start_target_date: string(date) - 対象開始日
  • end_target_date: string(date) - 対象終了日
  • passed_auto_check: boolean - 自動チェック結果
    • trueを指定した場合、自動チェック結果がtrueの申請のみ返却します。
    • falseを指定した場合、自動チェック結果がfalseの申請のみ返却します。
    • キーごと指定しない場合、すべての申請を返却します。
  • limit: integer - 取得レコードの件数 (デフォルト: 50, 最小: 1, 最大: 100)
  • offset: integer - 取得レコードのオフセット (デフォルト: 0)

レスポンス

  • work_times*: array[object]
  • total_count*: integer(int32) - 合計件数

POST /api/v1/approval_requests/work_times — 勤務時間修正申請の作成

概要 指定した事業所の勤務時間修正を新規作成します。 examples 勤務時間を修正する場合は以下のようなパラメータを指定します。 { "company_id": 1, "target_date": "2017-05-25", "break_records": [ { "clock_in_at": "2017-05-25 12:00:00", "clock_out_at": "2017-05-25 13:00:00" } ], "work_records": [ { "clock_in_at": "2017-05-25 09:10:00", "clock_out_at": "2017-05-25 18:20:00" } ], "approval_flow_route_id": 1 }

注意点 申請経路、承認者の指定として部門役職データ連携を活用し、以下のいずれかを利用している申請と申請経路はAPI経由で参照は可能ですが、作成と更新、承認ステータスの変更ができません。 役職指定(申請者の所属部門) 役職指定(申請時に部門指定) 部門および役職指定 申請者と承認者が同一ユーザーの場合、f...

リクエストボディ

  • company_id*: integer(int32) - 事業所ID(必須) 例: 1 (最小: 1, 最大: 2147483647)

  • target_date*: string(date) - 対象日(必須) (パターン: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$)

  • clear_work_time: boolean - false: 勤務時間を修正する true: 勤務時間を削除する

    勤務時間を削除する場合は以下のパラメータは指定しないでください。

    • work_records
    • lateness_mins
    • early_leaving_mins
    • break_records
  • work_records: array[object] - 勤務時間のリスト 配列の要素:

    • id*: integer(int32) - 申請ID 例: 1 (最小: 1, 最大: 2147483647)
    • company_id*: integer(int32) - 事業所ID 例: 1 (最小: 1, 最大: 2147483647)
    • application_number*: integer(int32) - 申請No 例: 1 (最小: 1, 最大: 2147483647)
    • applicant_id*: integer(int32) - 申請者のユーザーID 例: 1 (最小: 1, 最大: 2147483647)
    • approver_ids: array[integer] - 承認者のユーザーID配列 次の場合、空配列になります。
      • 指定なしの申請経路を利用した、申請ステータスが承認済み以外の申請
      • 申請が差戻された
    • target_date*: string(date) - 対象日 (パターン: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$)
    • clear_work_time*: boolean - 勤務時間削除フラグ(false:勤務時間を修正する、true:勤務時間を削除する)
    • clock_in_at: string - 勤務開始時間
      • 勤務時間が複数登録されている場合は、最初の勤務の出勤時間を返します。 例: 12:00 (パターン: ^[0-9]{2}:[0-9]{2}(:[0-9]{2})?$)
    • clock_out_at: string - 勤務終了時間
      • 勤務時間が複数登録されている場合は、最後の勤務の退勤時間を返します。 例: 23:59 (パターン: ^[0-9]{2}:[0-9]{2}(:[0-9]{2})?$)
    • work_records: array[object] - 勤務時間のリスト
      • 登録されている全ての勤務時間のリストを返します。
    • lateness_mins*: integer(int32) - 遅刻分の時間(分単位)
    • early_leaving_mins*: integer(int32) - 早退分の時間(分単位)
    • break_records: array[object] - 休憩時間のリスト
    • issue_date*: string(date) - 申請日 (パターン: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$)
    • comment: string - 申請理由 例: 申請理由
    • status*: string - 申請ステータス。(draft:下書き、in_progress:申請中、approved:承認済、feedback:差戻し) (選択肢: draft, in_progress, approved, feedback) 例: in_progress
    • passed_auto_check*: boolean - 自動チェック結果 例: true
    • proxy_applicant_id: integer(int32) - 代理申請者のユーザーID 例: 1 (最小: 1, 最大: 2147483647)
  • lateness_mins: integer(int32) - 遅刻分の時間(分単位)

  • early_leaving_mins: integer(int32) - 早退分の時間(分単位)

  • break_records: array[object] - 休憩時間のリスト 配列の要素:

    • id*: integer(int32) - 申請ID 例: 1 (最小: 1, 最大: 2147483647)
    • company_id*: integer(int32) - 事業所ID 例: 1 (最小: 1, 最大: 2147483647)
    • application_number*: integer(int32) - 申請No 例: 1 (最小: 1, 最大: 2147483647)
    • applicant_id*: integer(int32) - 申請者のユーザーID 例: 1 (最小: 1, 最大: 2147483647)
    • approver_ids: array[integer] - 承認者のユーザーID配列 次の場合、空配列になります。
      • 指定なしの申請経路を利用した、申請ステータスが承認済み以外の申請
      • 申請が差戻された
    • target_date*: string(date) - 対象日 (パターン: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$)
    • clear_work_time*: boolean - 勤務時間削除フラグ(false:勤務時間を修正する、true:勤務時間を削除する)
    • clock_in_at: string - 勤務開始時間
      • 勤務時間が複数登録されている場合は、最初の勤務の出勤時間を返します。 例: 12:00 (パターン: ^[0-9]{2}:[0-9]{2}(:[0-9]{2})?$)
    • clock_out_at: string - 勤務終了時間
      • 勤務時間が複数登録されている場合は、最後の勤務の退勤時間を返します。 例: 23:59 (パターン: ^[0-9]{2}:[0-9]{2}(:[0-9]{2})?$)
    • work_records: array[object] - 勤務時間のリスト
      • 登録されている全ての勤務時間のリストを返します。
    • lateness_mins*: integer(int32) - 遅刻分の時間(分単位)
    • early_leaving_mins*: integer(int32) - 早退分の時間(分単位)
    • break_records: array[object] - 休憩時間のリスト
    • issue_date*: string(date) - 申請日 (パターン: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$)
    • comment: string - 申請理由 例: 申請理由
    • status*: string - 申請ステータス。(draft:下書き、in_progress:申請中、approved:承認済、feedback:差戻し) (選択肢: draft, in_progress, approved, feedback) 例: in_progress
    • passed_auto_check*: boolean - 自動チェック結果 例: true
    • proxy_applicant_id: integer(int32) - 代理申請者のユーザーID 例: 1 (最小: 1, 最大: 2147483647)
  • comment: string - 申請理由 例: 申請理由

  • approval_flow_route_id*: integer(int32) - 申請経路ID(必須) 例: 1 (最小: 1, 最大: 2147483647)

  • approver_id: integer(int32) - 承認者のユーザーID 例: 1 (最小: 1, 最大: 2147483647)

レスポンス

  • work_time*: object

GET /api/v1/approval_requests/work_times/{id} — 勤務時間修正申請の取得

概要 指定した事業所の勤務時間修正申請情報を取得します。

注意点 申請経路、承認者の指定として部門役職データ連携を活用し、以下のいずれかを利用している申請と申請経路はAPI経由で参照は可能ですが、作成と更新、承認ステータスの変更ができません。 役職指定(申請者の所属部門) 役職指定(申請時に部門指定) 部門および役職指定 申請者と承認者が同一ユーザーの場合、feedback(差戻し)をするとレスポンスは以下のようになります。 status: draft approval_flow_logs.action: cancel

パラメータ

  • company_id*: integer - 事業所ID
  • id* (path): integer - 勤務時間修正申請ID

PUT /api/v1/approval_requests/work_times/{id} — 勤務時間修正申請の更新

概要 指定した事業所の勤務時間修正申請情報を更新します。 examples 勤務時間を修正する場合は以下のようなパラメータを指定します。 { "company_id": 1, "target_date": "2017-05-25", "break_records": [ { "clock_in_at": "2017-05-25 12:00:00", "clock_out_at": "2017-05-25 13:00:00" } ], "work_records": [ { "clock_in_at": "2017-05-25 09:10:00", "clock_out_at": "2017-05-25 18:20:00" } ], "approval_flow_route_id": 1 }

注意点 申請経路、承認者の指定として部門役職データ連携を活用し、以下のいずれかを利用している申請と申請経路はAPI経由で参照は可能ですが、作成と更新、承認ステータスの変更ができません。 役職指定(申請者の所属部門) 役職指定(申請時に部門指定) 部門および役職指定 申請者と承認者が同一ユーザーの場合...

パラメータ

  • id* (path): integer - 勤務時間修正申請ID

DELETE /api/v1/approval_requests/work_times/{id} — 勤務時間修正申請の削除

概要 指定した事業所の勤務時間修正申請情報を削除します。

注意点 申請経路、承認者の指定として部門役職データ連携を活用し、以下のいずれかを利用している申請と申請経路はAPI経由で参照は可能ですが、作成と更新、承認ステータスの変更ができません。 役職指定(申請者の所属部門) 役職指定(申請時に部門指定) 部門および役職指定

パラメータ

  • id* (path): integer - 勤務時間修正申請ID
  • company_id*: integer - 事業所ID

POST /api/v1/approval_requests/work_times/{id}/actions — 勤務時間修正申請の承認操作

概要 指定した事業所の勤務時間修正申請情報を承認操作します。

注意点 申請経路、承認者の指定として部門役職データ連携を活用し、以下のいずれかを利用している申請と申請経路はAPI経由で参照は可能ですが、作成と更新、承認ステータスの変更ができません。 役職指定(申請者の所属部門) 役職指定(申請時に部門指定) 部門および役職指定 申請者と承認者が同一ユーザーの場合、feedback(差戻し)をするとレスポンスは以下のようになります。 status: draft approval_flow_logs.action: cancel

パラメータ

PUT /api/v1/approval_requests/work_times/{id} と同じ

リクエストボディ

  • company_id*: integer(int32) - 事業所ID 例: 1 (最小: 1, 最大: 2147483647)
  • approval_action*: string - 申請操作。(approve:承認、cancel:取り消し、feedback:差戻し、force_feedback:承認取り消し) (選択肢: approve, cancel, feedback, force_feedback) 例: approve
  • target_round*: integer(int32) - 対象round。差戻し等により申請がstepの最初からやり直しになるとroundの値が増えます。取得APIレスポンス.current_roundを送信してください。 例: 1 (最小: 1, 最大: 2147483647)
  • target_step_id*: integer(int32) - 対象承認ステップID。取得APIレスポンス.current_step_idを送信してください。 例: 1 (最小: 1, 最大: 2147483647)
  • next_approver_id: integer(int32) - 次のステップの承認者のユーザーID 例: 1 (最小: 1, 最大: 2147483647)

Source: SKILL.md on GitHub

1 warningtoday5 checks · Risk SAFE
  • Gen Agent Trust Hubtoday

    This skill provides a comprehensive interface for AI agents to interact with the freee suite of APIs (Accounting, HR, Invoices, IT Management, etc.) via the Model Context Protocol (MCP). It includes exhaustive documentation, usage recipes, and security-conscious guidelines that instruct the agent to treat all retrieved financial and tax data as information rather than executable commands.

  • Sockettoday

    No alerts

  • Snyktoday

    Risk: MEDIUM · 1 issue

  • Runlayer6mo

    3/83 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at f5d1212. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 3 weeks ago
metadata
{
  "author": "freee_jp",
  "homepage": "https://github.com/freee/freee-mcp"
}
  • API
  • MCP
  • freee
  • accounting
  • hr
  • invoicing
  • project-management
  • expense-tracking
  • payroll

README badge

README badge for freee/freee-mcp

Provides detailed API reference and usage guides for freee's accounting, HR, invoicing, project management, sales, and IT management services through the freee-mcp MCP server. Use this skill when you need to query or perform operations on freee data like expense reports, transactions, employee records, timesheets, invoices, or project hours.

Generated from the current SKILL.md.

Does this skill work with both Remote MCP and local setup?
Yes. The skill supports Remote MCP (recommended, auto-authenticated via browser) and local MCP server setup (requires running `npx freee-mcp configure`). Use `freee_server_info` to check which transport mode is active.
Which freee products does this skill cover?
The skill covers accounting, HR/payroll, invoicing, project time tracking, sales management, IT management, and expense applications. Signing (electronic contracts) requires a separate `freee-sign-mcp` setup.
Do I need to specify a company ID for API calls?
Yes. You must first fetch the current company ID using `freee_get_current_company`, and it must match the company you want to operate on. Use `freee_set_current_company` to switch between companies before making API calls.
What should I do if I get an authentication error?
For Remote MCP, the client will prompt for re-authentication; if that fails, remove and re-add the custom connector. For local mode, use `freee_auth_status` to check status, then run `freee_clear_auth` followed by `freee_authenticate`.
Where do I find API details and usage examples?
The skill includes `recipes/` for common workflows (expense applications, deals, payroll, invoicing, etc.) and `references/` with detailed API parameters and response specs. Start with relevant recipes before consulting references.

Generated from the current SKILL.md. These answers refresh after source changes.