newapi-mcp

v0.1.0
newapi-mcp Checked 13 hours ago Published 10 months ago

New API MCP - Model Context Protocol implementation

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_model_pricing

Get all model pricing and ratios.

get_model_list

Get all model names (simplified).

get_model_price_by_name

Get model price by name.

ParameterTypeDescription
model_name *string

get_models_by_vendor

Get models by vendor ID.

ParameterTypeDescription
vendor_id *integer

get_models_by_ratio_range

Get models by ratio range.

ParameterTypeDescription
max_ratio *number
min_ratio *number

get_pricing_statistics

Get pricing statistics.

search_models

Search models with advanced filtering.

ParameterTypeDescription
keyword
limitinteger
max_ratio
min_ratio
vendor_id

compare_models

Compare multiple models.

ParameterTypeDescription
model_names *array

get_cheapest_models

Get cheapest models by ratio.

ParameterTypeDescription
limitinteger

get_fastest_models

Get fastest models by completion ratio.

ParameterTypeDescription
limitinteger

update_model_ratio

Update model ratios.

ParameterTypeDescription
model_ratios *object

update_model_price

Update model prices.

ParameterTypeDescription
model_prices *object

get_all_users

Get all users with pagination.

ParameterTypeDescription
limitinteger
pageinteger
sortstring

create_user

Create a new user.

ParameterTypeDescription
password *string
username *string
groupstring

update_user

Update user information.

ParameterTypeDescription
user_id *integer
group
password
username

delete_user

Delete a user.

ParameterTypeDescription
user_id *integer

create_token

Create a new API token.

ParameterTypeDescription
name *string
remain_quota
unlimited_quotaboolean

get_token_info

Get current token information.

estimate_cost

Estimate API call cost.

ParameterTypeDescription
input_tokens *integer
model_name *string
output_tokens *integer

list_available_models_for_token

List all available models for current token.

get_all_channels

Get all channels with pagination.

ParameterTypeDescription
limitinteger
pageinteger
sortstring

get_channel_list

Get simplified channel list.

get_channel_by_name

Get channel by name.

ParameterTypeDescription
name *string

create_channel

Create a new channel.

ParameterTypeDescription
channel_type *integer
key *string
name *string
priorityinteger
statusinteger

update_channel

Update channel configuration.

ParameterTypeDescription
channel_id *integer
key
name
priority
status

test_channel

Test channel connectivity.

ParameterTypeDescription
channel_id *integer

get_channel_status

Get channel status.

ParameterTypeDescription
channel_id *integer

get_all_models

Get all models with pagination.

ParameterTypeDescription
limitinteger
pageinteger
sortstring

get_logs

Get logs with optional filtering.

ParameterTypeDescription
end_time
limitinteger
model
pageinteger
start_time

get_token_usage

Get token usage statistics.